package com.hbt.en_rem_hou.entitys;

import java.util.LinkedList;
import java.util.List;

public class WordsCondition {
    private String word;
    private List<String> feature_strs;
    private List<Feature> features;
    private String cmd;
    private String imp;
    private int userid;

    @Override
    public String toString() {
        return "WordsCondition{" +
                "word='" + word + '\'' +
                ", feature_strs=" + feature_strs +
                ", features=" + features +
                ", cmd='" + cmd + '\'' +
                ", imp='" + imp + '\'' +
                ", userid=" + userid +
                '}';
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public WordsCondition() {
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public List<String> getFeature_strs() {
        return feature_strs;
    }

    public void setFeature_strs(List<String> feature_strs) {
        features = new LinkedList<>();
        for (int i = 0; i < feature_strs.size();i++){
            Feature feature = new Feature();
            feature.setDescript(feature_strs.get(i));
            System.out.println(feature_strs.get(i)+"feature");
            features.add(feature);
        }
        this.feature_strs = feature_strs;
    }

    public List<Feature> getFeatures() {
        return features;
    }

    public void setFeatures(List<Feature> features) {
        this.features = features;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getImp() {
        return imp;
    }

    public void setImp(String imp) {
        this.imp = imp;
    }
}
